package com.baijia.ticket;

import com.baijia.authentication.principal.Service;

/**
 * Exception to alert that there was an error validating the ticket.
 * 
 * @author Scott Battaglia
 * @version $Revision$ $Date$
 * @since 3.0
 */

/**
 * @title TicketValidationException
 * @desc ST验证错误时抛出 
 * @author caoliang
 * @date 2015年12月5日
 * @version 1.0
 */
public class TicketValidationException extends TicketException {

    private static final long serialVersionUID = 3257004341537093175L;

    private static final String CODE = "INVALID_SERVICE";
    
    private final Service service;

    public TicketValidationException(final Service service) {
        super(CODE);
        this.service = service;
    }
    
    public Service getOriginalService() {
        return this.service;
    }

}
